<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ page import="java.io.*,java.util.*,java.sql.*" %>
<%@ page import="javax.servlet.http.*,javax.servlet.*" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql" %>
<html>
<head>
	<meta charset="utf-8">
	<title>同学录</title>
	<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
	<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>
	<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
	<style>
    .fakeimg {
        height: 200px;
         background: #aaa;
    }
    td,th{
      text-align: center;
    }
    a{text-decoration:none}
  </style>
</head>
<body>
<%
  request.setCharacterEncoding("utf-8");
  String StudentNumber=request.getParameter("StudentNumber");
   String fullName=request.getParameter("fullName");
   String Gender=request.getParameter("Gender");
   String Age=request.getParameter("Age");
   String NativePlace=request.getParameter("NativePlace");
   String QQ=request.getParameter("QQ");
   String mailbox=request.getParameter("mailbox");
%>
  <!-- 头部开始 -->
<div class="jumbotron text-center" style="margin-bottom:0">
  <h1>同学录</h1>
</div>
<nav class="navbar navbar-inverse">
  <div class="container-fluid">
    <div class="navbar-header">
      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a class="navbar-brand" href="#">计科1班 </a>
    </div>
    <div class="collapse navbar-collapse" id="myNavbar">
      <ul class="nav navbar-nav" style="width: 85%;">
        <li><a href="./index.jsp">主页</a></li>
        <li><a href="./add.jsp">添加新同学</a></li>
        <li  class="active"><a href="./edit.jsp">修改同学信息</a></li>
        <li class="navbar-right"><a href="./login.jsp">登录</a></li>
        <li class="navbar-right"><a href="./sign.jsp">注册</a></li>
      </ul>
    </div>
  </div>
</nav>
<!-- 头部结束 -->

<div class="container" style="width: 30%;">
  <h1 style="text-align: center; margin-bottom: 50px;">修改同学信息</h1>

  <div>
    <form class="form-horizontal" action="edit_to.jsp?StudentNumber=<%=StudentNumber%>" method="post">
      <div class="form-group">
        <label for="StudentNumber" class="col-sm-2 control-label">学号</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" id="StudentNumber" value="<%=StudentNumber%>" disabled name="studentNumber" placeholder="请输入学号">
        </div>
      </div>
      <div class="form-group">
        <label for="fullName" class="col-sm-2 control-label">姓名</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" id="fullName" value="<%=fullName%>" name="fullName"  placeholder="">
        </div>
      </div>
      <div class="form-group">
        <label for="Gender" class="col-sm-2 control-label">性别</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" id="Gender" value="<%=Gender%>" name="gender" laceholder="男/女" >
        </div>
      </div>
      <div class="form-group">
        <label for="Age" class="col-sm-2 control-label">年龄</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" id="Age" name="age" value="<%=Age%>" placeholder="22">
        </div>
      </div>
      <div class="form-group">
        <label for="NativePlace" class="col-sm-2 control-label">籍贯</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" id="NativePlace" name="nativePlace" value="<%=NativePlace%>" placeholder="湖北">
        </div>
      </div>
      <div class="form-group">
        <label for="QQ" class="col-sm-2 control-label">QQ</label>
        <div class="col-sm-10">
          <input type="text" class="form-control" id="QQ" name="qq" value="<%=QQ%>" placeholder="">
        </div>
      </div>
      <div class="form-group">
        <label for="mailbox" class="col-sm-2 control-label">邮箱</label>
        <div class="col-sm-10">
          <input type="email" class="form-control" id="mailbox" name="mailbox" value="<%=mailbox%>" placeholder="">
        </div>
      </div>

      <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
          <button type="submit" class="btn btn-success">
            确认修改
          </button>
        </div>
      </div>
    </form>
  </div>
</div>
  <div class="jumbotron text-center" style="margin-bottom:0">
    <p>@梅文超 2020-5-20</p>
  </div>
</body>
</html>